

def test(start, month):
    rabbits = [start, 0, 0, 0]

    for i in range(1, month + 1):
        rabbits[3] += rabbits[2]
        rabbits[2] = rabbits[1]
        rabbits[1] = rabbits[0]
        rabbits[0] = rabbits[3]

        count = rabbits[0] + rabbits[1] + rabbits[2] + rabbits[3]
        print('%2d: %4d  %4d  %4d  %4d         %4d' % (i, rabbits[0], rabbits[1], rabbits[2], rabbits[3], count))

    return count


if __name__ == '__main__':
    print(test(10, 10))
